/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.testis.nicmodule.core;

import org.testis.data.*;


/**
 * A class to define exception thrown from running test steps
 * @author alperb
 */
public class NicModuleException extends RuntimeException
{
    
    private static final long serialVersionUID = 19826L;
    private NicModuleExceptionType m_resultType;


    public NicModuleException(NicModuleExceptionType result,
                             String errorMsg)
    {
        super(errorMsg);
        m_resultType = result;
    }


    /**
     * Result type gives type of exception.
     * @return
     */
    public NicModuleExceptionType getResultType()
    {
        return m_resultType;
    }


    public void setResultType(NicModuleExceptionType m_resultType)
    {
        this.m_resultType = m_resultType;
    }
}
